#include <qapplication.h>
#include <qpushbutton.h>

int main(int argc, char **argv)
{
	QApplication a(argc, argv);

	QWidget w(0, "main window");
	w.setCaption("Main Window");
	w.setGeometry(10, 10, 150, 100);
	a.setMainWidget(&w);

	QPushButton *quit = new QPushButton("Quit!", &w, "quit button");
	QObject::connect(quit, SIGNAL(clicked()), qApp, SLOT(quit()));
	quit->setGeometry(10, 10, 80, 30);

	w.show();

	return a.exec();
}
